import request from '@/utils/request';

 export function Lunbolistrequest(){
  return request({
    url: '/admin/banner/list',
    method: 'get',
  });
}
 export function LunboAddrequest(img:string,alt:string,link:string){
  return request({
    url: '/admin/banner/add',
    method: 'post',
    data:{
      img,
      alt,
      link
    }
  });
}
 export function LunboDeleterequest(bannerid:string){
  console.log(bannerid);
  return request({
    url: '/admin/banner/delete',
    method: 'get',
    params: {
      bannerid
    }
  });
}
//访问更新轮播图接口
 export function Lunboputrequest(bannerid:string,flag:string){
  return request({
    url: '/admin/banner/updateFlag',
    method: 'post',
    params: {
      bannerid,
      flag
    }
  });
}
